<template>
  <div>
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-size="pagesize"
      layout="total, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>

<script>
export default {
    name:"pagination",
    props:{
        total:{
            type:Number,
           required: true
        },
        currentPage4:{
            type:Number,
            required: true
        },
        pagesize:{
            type:Number,
            required: true
        }
    },
    methods: {
      handleCurrentChange(val) {
        // console.log(`当前页: ${val}`);
        this.$emit("pagination",val)
      }
    },
    data() {
      return {
      };
    }
  }
</script>

<style>

</style>